package com.campus.client.view;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class CourseRow {
    private final StringProperty courseId;
    private final StringProperty courseName;
    private final StringProperty credit;

    public CourseRow(String id, String name, String credit) {
        this.courseId = new SimpleStringProperty(id);
        this.courseName = new SimpleStringProperty(name);
        this.credit = new SimpleStringProperty(credit);
    }

    public String getCourseId() { return courseId.get(); }
    public StringProperty courseIdProperty() { return courseId; }

    public String getCourseName() { return courseName.get(); }
    public StringProperty courseNameProperty() { return courseName; }

    public String getCredit() { return credit.get(); }
    public StringProperty creditProperty() { return credit; }
}
